﻿CREATE PROCEDURE [dbo].[TempArticle_UpdateCategoryMatch]
	@CategoryId smallint, 
	@OriginalCategories varchar(max)
AS
	update TempArticles
	set CategoryId = @CategoryId
	where NotFoundCategory in (select Id from dbo.SplitStrings(@OriginalCategories, ','))